package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dto.ArticleDto;
import com.heima.model.article.dto.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.behavior.ApUserBehaviorDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.CommentSelectDto;
import com.heima.model.wemedia.dtos.WeMediaCommentDto;

public interface ArticleHomeService extends IService<ApArticle> {

    ResponseResult load(ArticleHomeDto dto,Short type);
    ResponseResult load2(ArticleHomeDto dto,Short type,Boolean firstPage);
    ResponseResult saveOrUpdateArticle(ArticleDto dto);

    void updateReadCount(ApUserBehaviorDto apUserBehaviorDto);

    PageResponseResult findComments(WeMediaCommentDto dto);
}
